package roleDto

type ListRequest struct {
	Page   int    `form:"page" validate:"required,min=1"`
	Limit  int    `form:"limit" validate:"required,min=1,max=9999"`
	Name   string `form:"name"`
	Status *int   `form:"status"`
}

type ListResponse struct {
	List  []RoleInfo `json:"list"`
	Total int64      `json:"total"`
	Page  int        `json:"page"`
	Limit int        `json:"limit"`
}

type RoleInfo struct {
	Id        int    `json:"id"`
	Name      string `json:"name"`
	Status    int    `json:"status"`
	CreatedAt string `json:"created_at"`
}
